package tests;

import common.Utils;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.WebDriverWait;

import java.time.Duration;

/**
 * @Author xuejiao
 * Data 2025/5/30 10:56
 */
public class PrizesListPage extends Utils {
    public static String url = "http://localhost:8080/prizes-list.html";

    public PrizesListPage() {
        super(url);
    }

    public void PrizesListPageSuccess() throws InterruptedException {
        WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(3));

        driver.findElement(By.cssSelector("body > div > h2"));
        Thread.sleep(1000);

    }
}
